home *** CD-ROM | disk | FTP | other *** search
- Path: vision1.engr.utk.edu!zhang
- From: zhang@vision1.engr.utk.edu (Gang Zhang)
- Newsgroups: comp.lang.c++
- Subject: HELP: How to append a menu to a CFileDialog box?
- Date: 30 Mar 1996 20:16:45 GMT
- Organization: University of Tennessee, Knoxville
- Message-ID: <4jk4rd$g8@gaia.ns.utk.edu>
- NNTP-Posting-Host: vision1.engr.utk.edu
-
-
- I have a appl writen in MFC that will open a file and do
- some process on it. I hide the mainfram window, and in the
- mainfram's oninit function, I created a CFileDialog object
- and used CFileDialog::DoModal(). The problem is, I want
- to show the about dialog box, and I will need the popup menu
- (click right mouse button on the open file dialog bar, it will
- appear, and has minmize and close two menuitems) to append a
- new menuitem "about". The problem is, after I inherite
- the CFiledialog class to my new class, and overwrite the
- oninitdialog() function, I can't use GetMenu() to get the menu,
- it always return a NULL. (I think that is because the dialog box
- really don't have a menu) What should I do to append something
- to the popupmenu?
-
- Thanks in advance!
- Gang
- .
-
-